﻿using SqlSugar;

namespace AnyLink.Domain.Entities
{
    /// <summary>
    /// 实体基类
    /// </summary>
    public class BaseEntity : IPrimaryKeyEntity<long>, IDeletedEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键")]
        public virtual long Id { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDescription = "是否删除")]
        public virtual bool IsDeleted { get; set; } = false;
    }
}
